import request from '@/utils/request'
export function dashboard(data) {
  return request({
    url: '/market/index/index',
    method: 'get',
    data
  })

}
export function diary_list(data) {
  return request({
    url: '/market/content/diary_list',
    method: 'get',
    data
  })

}
export function diary_del(id) {
  return request({
    url: '/market/content/diary_del',
    method: 'get',
    params:{
      id
    }
  })
}
export function diary_add(title,content,is_top) {
  return request({
    url: '/market/content/diary_add',
    method: 'get',
    params:{
      title,
      content,
      is_top,
    }
  })
}
export function diary_top(id,is_top) {
  return request({
    url: '/market/content/diary_top',
    method: 'get',
    params:{
      id,
      is_top,
    }
  })
}

export function notice_del(id) {
  return request({
    url: '/market/content/notice_del',
    method: 'post',
    data:{
      id,
    }
  })
}
export function notice_top(id,is_top) {
  return request({
    url: '/market/content/notice_top',
    method: 'post',
    data:{
      id,
      is_top
    }
  })
}
